//
//  SearchCollectionReusableView.m
//  Travel
//
//  Created by dllo on 15/10/13.
//  Copyright (c) 2015年 0. All rights reserved.
//

#import "SearchCollectionReusableView.h"


@implementation SearchCollectionReusableView
-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
//        UIImageView *backImage = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, WIDTH, HEIGHT/3)];
//        backImage.image = [UIImage imageNamed:@"2.jpg"];
//        [self addSubview:backImage];
//        self.myImageView=[[UIImageView alloc] initWithFrame:CGRectMake(0, 0, WIDTH, HEIGHT/3)];
//        [backImage addSubview:self.myImageView];
        
        
        
        
        
        //国家地区名字label
        self.nameLable=[[UILabel alloc] initWithFrame:CGRectMake(20, HIGHT/3-100*XHIGHT, 0.8*WIDTH, 0.075*HIGHT)];
        [self.myImageView addSubview:self.nameLable];
        self.nameLable.textColor=[UIColor whiteColor];
        self.nameLable.font = [UIFont fontWithName:@"Helvetica-Bold" size:20*XHIGHT];
        
        
        //去过 喜欢label
        self.wishLabel=[[UILabel alloc] initWithFrame:CGRectMake(20, HIGHT/3-50*XHIGHT, 0.533*WIDTH, 0.075*HIGHT)];
        [self.myImageView addSubview:self.wishLabel];
        self.wishLabel.textColor=[UIColor whiteColor];
        self.wishLabel.font = [UIFont fontWithName:@"Helvetica-Bold" size:15*XHIGHT];
        
        //旅行地点的Button
//        self.placeButton = [UIButton buttonWithType:UIButtonTypeCustom];
        self.placeButton.frame = CGRectMake(0.08*WIDTH, XHIGHT/3+5,WIDTH/4-10 , XHIGHT/10);
//            [self.placeButton setBackgroundImage:[UIImage imageNamed:@"bg_album_detail_text@2x.png"] forState:UIControlStateNormal];
        
//        [self addSubview:self.placeButton];
        
//        //旅行地点的label
//        self.placeLabel = [[UILabel alloc] initWithFrame:CGRectMake(0.08*WIDTH, HEIGHT/3+5,WIDTH/4-10 , HEIGHT/10+10)];
//        self.placeLabel.text=@"旅行地点";
//        self.placeLabel.textColor = [UIColor colorWithWhite:0.298 alpha:1.000];
//        self.placeLabel.font = [UIFont fontWithName:@"Helvetica-BoldOblique" size:16*PHEIGHT];
//        self.placeLabel.textAlignment = NSTextAlignmentCenter;
        //    placeLabel.textColor = [UIColor colorWithRed:50/255.0 green:170 /255.0 blue:190/255.0 alpha:1];
        //    placeLabel.layer.borderColor = [UIColor colorWithRed:50/255.0 green:170 /255.0 blue:190/255.0 alpha:1].CGColor;
        //    placeLabel.layer.cornerRadius = 15;
        
        //[self addSubview:self.placeLabel];
        
        //精品游记的Button
        self.noteButton = [[UIButton alloc] init];
         self.noteButton.frame = CGRectMake(0.08*WIDTH, 10*XHIGHT,WIDTH/4-10 , HIGHT/10);
        [self addSubview:self.noteButton];
        //精品游记的label
        self.noteLabel = [[UILabel alloc] initWithFrame:CGRectMake(0.08*WIDTH, 10*XHIGHT,WIDTH/4-10 , HIGHT/10+10)];
        self.noteLabel.text=@"精品游记";
        self.noteLabel.textColor = [UIColor colorWithWhite:0.298 alpha:1.000];
        self.noteLabel.font = [UIFont fontWithName:@"Helvetica-BoldOblique" size:16*XHIGHT];
        self.noteLabel.textAlignment = NSTextAlignmentCenter;
        //    noteLabel.textColor = [UIColor colorWithRed:50/255.0 green:170 /255.0 blue:190/255.0 alpha:1];
        //    noteLabel.layer.borderColor = [UIColor colorWithRed:50/255.0 green:170 /255.0 blue:190/255.0 alpha:1].CGColor;
        //    noteLabel.layer.cornerRadius = 15;
        [self addSubview:self.noteLabel];
        
        self.useButton = [UIButton buttonWithType:UIButtonTypeCustom];
        self.useButton.frame = CGRectMake(0.673*WIDTH, 10*XHIGHT, WIDTH/4-10, HIGHT/10+10);
        [self addSubview:self.useButton];
        
        self.useLabel = [[UILabel alloc]initWithFrame:CGRectMake(263*XWIDTH, 10*XHIGHT, WIDTH/4-10, HIGHT/10+10)];
        self.useLabel.text = @"实用须知";
        self.useLabel.textColor = [UIColor colorWithWhite:0.298 alpha:1.000];
        self.useLabel.font = [UIFont fontWithName:@"Helvetica-BoldOblique" size:16*XHIGHT];
        self.useLabel.textAlignment = NSTextAlignmentCenter;
        [self addSubview:self.useLabel];
        
//        self.offerButton = [UIButton buttonWithType:UIButtonTypeCustom];
//        self.offerButton.frame = CGRectMake(0.76*WIDTH, HEIGHT/3+5, WIDTH/4-10, HEIGHT/10+10);
//        [self addSubview:self.offerButton];
        
//        self.offerLabel = [[UILabel alloc]initWithFrame:CGRectMake(0.76*WIDTH, HEIGHT/3+5, WIDTH/4-10, HEIGHT/10+10)];
//        self.offerLabel.text = @"特价产品";
//        self.offerLabel.font = [UIFont fontWithName:@"Helvetica-BoldOblique" size:16];
//        self.offerLabel.textAlignment = NSTextAlignmentCenter;
//        [self addSubview:self.offerLabel];
        
        //推荐城市的label
        self.recommendLabel=[[UILabel alloc] initWithFrame:CGRectMake(0.410*WIDTH, 80*XHIGHT, 0.533*WIDTH, 30*XHIGHT)];
        self.recommendLabel.text=@"推荐景点";
        self.recommendLabel.font = [UIFont fontWithName:@"Helvetica-BoldOblique" size:18*XHIGHT];
        [self addSubview:self.recommendLabel];

    }
    return self;
}
@end
